.class public Lnbisdk/ba;
.super Lnbisdk/ia;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lnbisdk/ba$b;,
        Lnbisdk/ba$a;
    }
.end annotation


# instance fields
.field private bM:Ljava/util/Timer;

.field private bN:Ljava/util/Timer;

.field private bO:Z

.field private bP:I

.field final bQ:Ljava/lang/Runnable;

.field protected final bR:Ljava/lang/Runnable;

.field private bS:Lcom/nbi/location/LocationListener;

.field private bT:Lcom/nbi/location/LocationListener;


# direct methods
.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V
    .locals 2

    const/4 v1, 0x0

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2}, Lnbisdk/ia;-><init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V

    iput-object v1, p0, Lnbisdk/ba;->bM:Ljava/util/Timer;

    iput-object v1, p0, Lnbisdk/ba;->bN:Ljava/util/Timer;

    iput-boolean v0, p0, Lnbisdk/ba;->bO:Z

    iput v0, p0, Lnbisdk/ba;->bP:I

    new-instance v0, Lnbisdk/hn;

    invoke-direct {v0, p0}, Lnbisdk/hn;-><init>(Lnbisdk/ba;)V

    iput-object v0, p0, Lnbisdk/ba;->bQ:Ljava/lang/Runnable;

    new-instance v0, Lnbisdk/hm;

    invoke-direct {v0, p0}, Lnbisdk/hm;-><init>(Lnbisdk/ba;)V

    iput-object v0, p0, Lnbisdk/ba;->bR:Ljava/lang/Runnable;

    new-instance v0, Lnbisdk/hl;

    invoke-direct {v0, p0}, Lnbisdk/hl;-><init>(Lnbisdk/ba;)V

    iput-object v0, p0, Lnbisdk/ba;->bS:Lcom/nbi/location/LocationListener;

    new-instance v0, Lnbisdk/hk;

    invoke-direct {v0, p0}, Lnbisdk/hk;-><init>(Lnbisdk/ba;)V

    iput-object v0, p0, Lnbisdk/ba;->bT:Lcom/nbi/location/LocationListener;

    new-instance v0, Lnbisdk/he;

    invoke-direct {v0, p0}, Lnbisdk/he;-><init>(Lnbisdk/ba;)V

    invoke-super {p0}, Lnbisdk/ia;->jp()I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lnbisdk/ba;->sv:J

    return-void
.end method

.method static synthetic a(Lnbisdk/ba;I)I
    .locals 0

    iput p1, p0, Lnbisdk/ba;->bP:I

    return p1
.end method

.method static synthetic a(Lnbisdk/ba;)Z
    .locals 1

    invoke-direct {p0}, Lnbisdk/ba;->aT()Z

    move-result v0

    return v0
.end method

.method static synthetic a(Lnbisdk/ba;Z)Z
    .locals 0

    iput-boolean p1, p0, Lnbisdk/ba;->bO:Z

    return p1
.end method

.method private aT()Z
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    :try_start_0
    iget-boolean v0, p0, Lnbisdk/ba;->sx:Z

    if-ne v0, v4, :cond_0

    move v0, v3

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    invoke-interface {v0}, Lnbisdk/or;->jO()Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v4

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    iget-object v0, p0, Lnbisdk/ba;->ca:Lcom/nbi/common/NBIContext;

    iget-object v1, p0, Lnbisdk/ba;->bT:Lcom/nbi/location/LocationListener;

    invoke-static {v0, v1}, Lnbisdk/bd;->b(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)Lnbisdk/or;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-nez v0, :cond_2

    move v0, v3

    goto :goto_0

    :catch_0
    move-exception v0

    move v0, v3

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    iget-object v1, p0, Lnbisdk/ba;->ca:Lcom/nbi/common/NBIContext;

    iget-object v2, p0, Lnbisdk/ba;->bT:Lcom/nbi/location/LocationListener;

    invoke-interface {v0, v1, v2}, Lnbisdk/or;->c(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    invoke-interface {v0}, Lnbisdk/or;->bl()Z

    move-result v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    const/16 v1, 0x2348

    invoke-interface {v0, v1}, Lnbisdk/or;->onLocationError(I)V

    :cond_3
    move v0, v3

    goto :goto_0

    :cond_4
    move v0, v4

    goto :goto_0
.end method

.method private aU()Z
    .locals 3

    const/4 v2, 0x0

    :try_start_0
    iget-object v0, p0, Lnbisdk/ba;->ca:Lcom/nbi/common/NBIContext;

    iget-object v1, p0, Lnbisdk/ba;->bS:Lcom/nbi/location/LocationListener;

    invoke-static {v0, v1}, Lnbisdk/bd;->a(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)Lnbisdk/gn;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/ba;->sn:Lnbisdk/gn;

    iget-object v0, p0, Lnbisdk/ba;->ca:Lcom/nbi/common/NBIContext;

    iget-object v1, p0, Lnbisdk/ba;->bT:Lcom/nbi/location/LocationListener;

    invoke-static {v0, v1}, Lnbisdk/bd;->b(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)Lnbisdk/or;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ba;->sn:Lnbisdk/gn;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-nez v0, :cond_1

    :cond_0
    move v0, v2

    :goto_0
    return v0

    :catch_0
    move-exception v0

    move v0, v2

    goto :goto_0

    :cond_1
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private aV()V
    .locals 4

    invoke-direct {p0}, Lnbisdk/ba;->aX()V

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lnbisdk/ba;->bM:Ljava/util/Timer;

    iget-object v0, p0, Lnbisdk/ba;->bM:Ljava/util/Timer;

    new-instance v1, Lnbisdk/ba$a;

    invoke-direct {v1, p0}, Lnbisdk/ba$a;-><init>(Lnbisdk/ba;)V

    invoke-virtual {p0}, Lnbisdk/ba;->jr()I

    move-result v2

    int-to-long v2, v2

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    return-void
.end method

.method private aW()V
    .locals 4

    invoke-direct {p0}, Lnbisdk/ba;->aY()V

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lnbisdk/ba;->bN:Ljava/util/Timer;

    iget-object v0, p0, Lnbisdk/ba;->bN:Ljava/util/Timer;

    new-instance v1, Lnbisdk/ba$b;

    invoke-direct {v1, p0}, Lnbisdk/ba$b;-><init>(Lnbisdk/ba;)V

    invoke-virtual {p0}, Lnbisdk/ba;->jq()I

    move-result v2

    int-to-long v2, v2

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    return-void
.end method

.method private aX()V
    .locals 1

    iget-object v0, p0, Lnbisdk/ba;->bM:Ljava/util/Timer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ba;->bM:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/ba;->bM:Ljava/util/Timer;

    :cond_0
    return-void
.end method

.method private aY()V
    .locals 1

    iget-object v0, p0, Lnbisdk/ba;->bN:Ljava/util/Timer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ba;->bN:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/ba;->bN:Ljava/util/Timer;

    :cond_0
    return-void
.end method

.method static synthetic b(Lnbisdk/ba;)I
    .locals 1

    iget v0, p0, Lnbisdk/ba;->bP:I

    return v0
.end method

.method static synthetic c(Lnbisdk/ba;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/ba;->aX()V

    return-void
.end method

.method static synthetic d(Lnbisdk/ba;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/ba;->aY()V

    return-void
.end method

.method static synthetic e(Lnbisdk/ba;)Z
    .locals 1

    iget-boolean v0, p0, Lnbisdk/ba;->bO:Z

    return v0
.end method

.method static synthetic f(Lnbisdk/ba;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/ba;->aV()V

    return-void
.end method

.method static synthetic g(Lnbisdk/ba;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/ba;->aW()V

    return-void
.end method


# virtual methods
.method public final aR()Z
    .locals 1

    iget-boolean v0, p0, Lnbisdk/ba;->bO:Z

    return v0
.end method

.method public final aS()Z
    .locals 4

    const/4 v3, 0x0

    const/4 v2, 0x1

    iput-boolean v2, p0, Lnbisdk/ba;->sr:Z

    invoke-virtual {p0}, Lnbisdk/ba;->jm()I

    move-result v0

    int-to-long v0, v0

    invoke-virtual {p0, v0, v1}, Lnbisdk/ba;->i(J)Z

    invoke-direct {p0}, Lnbisdk/ba;->aU()Z

    move-result v0

    if-eq v0, v2, :cond_0

    :goto_0
    return v0

    :cond_0
    invoke-direct {p0}, Lnbisdk/ba;->aT()Z

    move-result v0

    iget-object v1, p0, Lnbisdk/ba;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v1}, Lnbisdk/bd;->d(Lcom/nbi/common/NBIContext;)Lnbisdk/cj;

    move-result-object v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lnbisdk/ba;->sn:Lnbisdk/gn;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lnbisdk/ba;->sn:Lnbisdk/gn;

    invoke-interface {v1}, Lnbisdk/gn;->bl()Z

    move-result v1

    :goto_1
    if-nez v1, :cond_2

    if-nez v0, :cond_2

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/ba;->so:Lnbisdk/or;

    const/16 v1, 0x2346

    invoke-interface {v0, v1}, Lnbisdk/or;->onLocationError(I)V

    :cond_1
    move v0, v3

    goto :goto_0

    :cond_2
    invoke-direct {p0}, Lnbisdk/ba;->aV()V

    invoke-direct {p0}, Lnbisdk/ba;->aW()V

    move v0, v2

    goto :goto_0

    :cond_3
    move v1, v3

    goto :goto_1
.end method

.method public final cancel()Z
    .locals 2

    invoke-direct {p0}, Lnbisdk/ba;->aX()V

    invoke-direct {p0}, Lnbisdk/ba;->aY()V

    iget-object v0, p0, Lnbisdk/ba;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v0}, Lnbisdk/bd;->b(Lcom/nbi/common/NBIContext;)Lnbisdk/hi;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-interface {v0}, Lnbisdk/hi;->fw()V

    :cond_0
    iget-object v0, p0, Lnbisdk/ba;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v0}, Lnbisdk/bd;->c(Lcom/nbi/common/NBIContext;)Lnbisdk/og;

    move-result-object v0

    if-eqz v0, :cond_1

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Lnbisdk/og;->a(Lnbisdk/mt;)V

    :cond_1
    invoke-super {p0}, Lnbisdk/ia;->cancel()Z

    move-result v0

    return v0
.end method
